import http from "@/utils/http"
import {
	host
} from '@/config'

export default {
	createXZ(data) {
		return http.post(`${host}/xzProduct`, {
			data
		});
	},
	getXZCatetory(){
		return http.get(`${host}/xzCategory`)
	},
	getXZList(data) {
		return http.get(`${host}/xzProduct?categoryId=${data}`);
	},
	getProductInfo(data){
		return http.get(`${host}/xzProduct/${data}`);
	}
}
